import request from '@/utils/request'

// 查询安保设施列表
export function listTbsecurity(query) {
  return request({
    url: '/apartment/tbsecurity/list',
    method: 'get',
    params: query
  })
}

// 查询安保设施详细
export function getTbsecurity(id) {
  return request({
    url: '/apartment/tbsecurity/' + id,
    method: 'get'
  })
}

// 新增安保设施
export function addTbsecurity(data) {
  return request({
    url: '/apartment/tbsecurity',
    method: 'post',
    data: data
  })
}

// 修改安保设施
export function updateTbsecurity(data) {
  return request({
    url: '/apartment/tbsecurity',
    method: 'put',
    data: data
  })
}

// 删除安保设施
export function delTbsecurity(id) {
  return request({
    url: '/apartment/tbsecurity/' + id,
    method: 'delete'
  })
}
